class Print < ActiveRecord::Base
  set_table_name 'designs_products'
  belongs_to :design
  belongs_to :product
  belongs_to :category

  def x
    self.category.x
  end

  def y
    self.category.y
  end

  def front_or_back
    self.category.front_or_back
  end

  def image_url
    self.design.image_path
  end

  def price
    self.design.price
  end
end